// require.ensure 是 Webpack 的特殊语法，用来设置 code-split point
import App from '../App.vue'
import Home from '../views/index.vue'
// import GoodsList from '../views/goods/list.vue'
// import VideoList from '../views/video/list.vue'
import CartList from '../views/cart/list.vue'
import My from '../views/my.vue'
import Offline from '../views/offline.vue'
// const Home = r => require.ensure([], () => r(require('../views/index.vue')), 'pages/home')
const GoodsList = r => require.ensure([], () => r(require('../views/goods/list.vue')), 'pages/goods/list')
const VideoList = r => require.ensure([], () => r(require('../views/video/list.vue')), 'pages/video/list')
const GoodsDetail = r => require.ensure([], () => r(require('../views/goods/detail.vue')), 'pages/goods/detail')
const AddressList = r => require.ensure([], () => r(require('../views/address/list.vue')), 'pages/address/list')
const ShopAddressList = r => require.ensure([], () => r(require('../views/address/shop.vue')), 'pages/address/shop')
const AddressAdd = r => require.ensure([], () => r(require('../views/address/add.vue')), 'pages/address/add')
const AddressEdit = r => require.ensure([], () => r(require('../views/address/edit.vue')), 'pages/address/edit')
const OrderConfirm = r => require.ensure([], () => r(require('../views/order/confirm.vue')), 'pages/order/confirm')
const OrderList = r => require.ensure([], () => r(require('../views/order/list.vue')), 'pages/order/list')
const OrderDetail = r => require.ensure([], () => r(require('../views/order/detail.vue')), 'pages/order/detail')
const OrderExpress = r => require.ensure([], () => r(require('../views/order/express.vue')), 'pages/order/express')
const OrderAgent = r => require.ensure([], () => r(require('../views/order/agent.vue')), 'pages/order/agent')
const OrderSuccess = r => require.ensure([], () => r(require('../views/order/success.vue')), 'pages/order/success')
const IntegralList = r => require.ensure([], () => r(require('../views/member/integral.vue')), 'pages/member/integral')
const BalanceList = r => require.ensure([], () => r(require('../views/member/balance.vue')), 'pages/member/balance')
const MemberSpread = r => require.ensure([], () => r(require('../views/member/spread.vue')), 'pages/member/spread')
const MemberRegister = r => require.ensure([], () => r(require('../views/member/register.vue')), 'pages/member/register')
const NoticeList = r => require.ensure([], () => r(require('../views/notice/list.vue')), 'pages/notice/list')
const NoticeDetail = r => require.ensure([], () => r(require('../views/notice/detail.vue')), 'pages/notice/detail')
const CommentAdd = r => require.ensure([], () => r(require('../views/comment/add.vue')), 'pages/comment/add')
const VideoDetail = r => require.ensure([], () => r(require('../views/video/detail.vue')), 'pages/video/detail')
const CommentList = r => require.ensure([], () => r(require('../views/comment/list.vue')), 'pages/comment/list')
const RefundList = r => require.ensure([], () => r(require('../views/refund/list.vue')), 'pages/refund/list')
const RefundGoodsAdd = r => require.ensure([], () => r(require('../views/refund/goods/add.vue')), 'pages/refund/goods/add')
const RefundGoodsList = r => require.ensure([], () => r(require('../views/refund/goods/list.vue')), 'pages/refund/goods/list')
const RefundGoodsDetail = r => require.ensure([], () => r(require('../views/refund/goods/detail.vue')), 'pages/refund/goods/detail')
const RefundGoodsExpress = r => require.ensure([], () => r(require('../views/refund/goods/express.vue')), 'pages/refund/goods/express')
const RefundMoneyAdd = r => require.ensure([], () => r(require('../views/refund/money/add.vue')), 'pages/refund/money/add')
const RefundMoneyDetail = r => require.ensure([], () => r(require('../views/refund/money/detail.vue')), 'pages/refund/money/detail')
const SettingIndex = r => require.ensure([], () => r(require('../views/setting/index.vue')), 'pages/setting/index')
const Password = r => require.ensure([], () => r(require('../views/setting/password.vue')), 'pages/setting/password')
const Name = r => require.ensure([], () => r(require('../views/setting/name.vue')), 'pages/setting/name')
const Feedback = r => require.ensure([], () => r(require('../views/setting/feedback.vue')), 'pages/setting/feedback')
const NewsList = r => require.ensure([], () => r(require('../views/news/list.vue')), 'pages/news/list')
const NewsDetail = r => require.ensure([], () => r(require('../views/news/detail.vue')), 'pages/news/detail')
const BalconyList = r => require.ensure([], () => r(require('../views/balcony/list.vue')), 'pages/balcony/list')
const ActiveList = r => require.ensure([], () => r(require('../views/active/list.vue')), 'pages/active/list')
const ActiveGoodsList = r => require.ensure([], () => r(require('../views/active/goodsList.vue')), 'pages/active/goodsList')
const CollectList = r => require.ensure([], () => r(require('../views/collect/list.vue')), 'pages/collect/list')
const SearchGoods = r => require.ensure([], () => r(require('../views/search/goods.vue')), 'pages/search/goods')
const InvitedMember = r => require.ensure([], () => r(require('../views/invited/member.vue')), 'pages/invited/member')
const InvitedOrder = r => require.ensure([], () => r(require('../views/invited/order.vue')), 'pages/invited/order')
const LoginPassword = r => require.ensure([], () => r(require('../views/login/password.vue')), 'pages/login/password')
const LoginMessage = r => require.ensure([], () => r(require('../views/login/message.vue')), 'pages/login/message')
const LoginBind = r => require.ensure([], () => r(require('../views/login/bind.vue')), 'pages/login/bind')

const LocationSelect = r => require.ensure([], () => r(require('../views/location/select.vue')), 'pages/location/select')
const StoreList = r => require.ensure([], () => r(require('../views/store/list.vue')), 'pages/store/list')
const StoreContact = r => require.ensure([], () => r(require('../views/store/contact.vue')), 'pages/store/contact')
const IntegralMall = r => require.ensure([], () => r(require('../views/integral/mall.vue')), 'pages/integral/mall')
const IntegralExchanged = r => require.ensure([], () => r(require('../views/integral/exchanged.vue')), 'pages/integral/exchanged')
const WikiIndex = r => require.ensure([], () => r(require('../views/wiki/index.vue')), 'pages/wiki/index')
// const MemberCoupon = r => require.ensure([], () => r(require('../views/member/Coupon.vue')), 'pages/member/Coupon')
// const StoreCoupon = r => require.ensure([], () => r(require('../views/active/Coupon.vue')), 'pages/active/Coupon')
const OrderIntegralDetail = r => require.ensure([], () => r(require('../views/order/integral/detail.vue')), 'pages/order/integral/detail')
const ClassifyIntegral = r => require.ensure([], () => r(require('../views/classify/integral.vue')), 'pages/classify/integral.vue')
const ClassifyBuy = r => require.ensure([], () => r(require('../views/classify/buy.vue')), 'pages/classify/buy.vue')

// 租花相关
const ClassifyRent = r => require.ensure([], () => r(require('../views/classify/rent.vue')), 'pages/classify/rent.vue')
const OrderRentConfirm = r => require.ensure([], () => r(require('../views/order/rent/confirm.vue')), 'pages/order/rent/confirm')
const OrderRentDetail = r => require.ensure([], () => r(require('../views/order/rent/detail.vue')), 'pages/order/rent/detail')
const OrderRentServer = r => require.ensure([], () => r(require('../views/order/rent/server.vue')), 'pages/order/rent/server')

// 博客相关
const BlogIndex = r => require.ensure([], () => r(require('../views/blog/index.vue')), 'pages/blog/index')
const ArticleAdd = r => require.ensure([], () => r(require('../views/blog/article/add.vue')), 'pages/blog/article/add')
const ArticleEdit = r => require.ensure([], () => r(require('../views/blog/article/edit.vue')), 'pages/blog/article/edit')
const ArticleDetail = r => require.ensure([], () => r(require('../views/blog/article/detail.vue')), 'pages/blog/article/detail')
const ArticleDetail2 = r => require.ensure([], () => r(require('../views/blog/article/detail2.vue')), 'pages/blog/article/detail2')
const ArticleList = r => require.ensure([], () => r(require('../views/blog/article/list.vue')), 'pages/blog/article/list')
const DiaryList = r => require.ensure([], () => r(require('../views/blog/diary/list.vue')), 'pages/blog/diary/list')
const DiaryAdd = r => require.ensure([], () => r(require('../views/blog/diary/add.vue')), 'pages/blog/diary/add')
const FansList = r => require.ensure([], () => r(require('../views/blog/fans/list.vue')), 'pages/blog/fans/list')
const FollowList = r => require.ensure([], () => r(require('../views/blog/follow/list.vue')), 'pages/blog/follow/list')
const RelationList = r => require.ensure([], () => r(require('../views/blog/relation.vue')), 'pages/blog/relation')

// 花园相关
const GardenList = r => require.ensure([], () => r(require('../views/garden/list.vue')), 'pages/garden/list')
const ChildGardenList = r => require.ensure([], () => r(require('../views/garden/child/list.vue')), 'pages/garden/child/list')
const ChildGardenAdd = r => require.ensure([], () => r(require('../views/garden/child/add.vue')), 'pages/garden/child/add')
const ChildGardenDeleted = r => require.ensure([], () => r(require('../views/garden/child/deleted.vue')), 'pages/garden/child/deleted')
const GardenDeleted = r => require.ensure([], () => r(require('../views/garden/deleted.vue')), 'pages/garden/deleted')
const ShareGardenDeleted = r => require.ensure([], () => r(require('../views/garden/shareGardenDeleted.vue')), 'pages/garden/shareGardenDeleted')
const ShareGardenEdit = r => require.ensure([], () => r(require('../views/garden/shareGardenEdit.vue')), 'pages/garden/shareGardenEdit')

const GardenAdd = r => require.ensure([], () => r(require('../views/garden/add.vue')), 'pages/garden/add')
const GardenEdit = r => require.ensure([], () => r(require('../views/garden/edit.vue')), 'pages/garden/edit')
const GardenDetail = r => require.ensure([], () => r(require('../views/garden/detail.vue')), 'pages/garden/detail')
const PlantList = r => require.ensure([], () => r(require('../views/garden/plant/list.vue')), 'pages/garden/plant/list')
const PlantAdd = r => require.ensure([], () => r(require('../views/garden/plant/add.vue')), 'pages/garden/plant/add')
const PlantEdit = r => require.ensure([], () => r(require('../views/garden/plant/edit.vue')), 'pages/garden/plant/edit')
const WikiList = r => require.ensure([], () => r(require('../views/wiki/list.vue')), 'pages/wiki/list')
const WikiBaidu = r => require.ensure([], () => r(require('../views/wiki/baidu.vue')), 'pages/wiki/baidu')
const WikiGoods = r => require.ensure([], () => r(require('../views/wiki/goods.vue')), 'pages/wiki/goods')
const PlantAttr = r => require.ensure([], () => r(require('../views/garden/plant/attr.vue')), 'pages/garden/plant/attr')
const PlantDetail = r => require.ensure([], () => r(require('../views/garden/plant/detail.vue')), 'pages/garden/plant/detail')
const GrowthAdd = r => require.ensure([], () => r(require('../views/garden/plant/growth/add.vue')), 'pages/garden/plant/growth/add')
const GrowthEdit = r => require.ensure([], () => r(require('../views/garden/plant/growth/edit.vue')), 'pages/garden/plant/growth/edit')
const TaskList = r => require.ensure([], () => r(require('../views/garden/task/list.vue')), 'pages/garden/task/list')
const TaskClassify = r => require.ensure([], () => r(require('../views/garden/task/classify.vue')), 'pages/garden/task/classify')
const TaskGarden = r => require.ensure([], () => r(require('../views/garden/task/garden.vue')), 'pages/garden/task/garden')
const TaskBatch = r => require.ensure([], () => r(require('../views/garden/task/batch.vue')), 'pages/garden/task/batch')
const DistributeFans = r => require.ensure([], () => r(require('../views/garden/distribute/fans.vue')), 'pages/garden/distribute/fans')
const DistributeMember = r => require.ensure([], () => r(require('../views/garden/distribute/member.vue')), 'pages/garden/distribute/member')
const DistributePlant = r => require.ensure([], () => r(require('../views/garden/distribute/plant.vue')), 'pages/garden/distribute/plant')
const DistributeMemberPlant = r => require.ensure([], () => r(require('../views/garden/distribute/member-plant.vue')), 'pages/garden/distribute/member-plant')
const DistributeModify = r => require.ensure([], () => r(require('../views/garden/distribute/modify.vue')), 'pages/garden/distribute/modify')

const CouponStore = r => require.ensure([], () => r(require('../views/coupon/store.vue')), 'pages/coupon/store')
const CouponDetail = r => require.ensure([], () => r(require('../views/coupon/detail.vue')), 'pages/coupon/detail')
const CouponMy = r => require.ensure([], () => r(require('../views/coupon/my.vue')), 'pages/coupon/my')

// 识花相关
const Distinguish = r => require.ensure([], () => r(require('../views/distinguish/index.vue')), 'pages/distinguish/index')

const scrollBehavior = (to, from, savedPosition) => {
  return {x: 0, y: 0}
}
let list = [
  {
    path: '*',
    name: 'default',
    component: Home,
    meta: {
      login: true
    }
  },
  {
    path: '/',
    name: 'app',
    component: App, // 顶级路由
    children: [ // 二级路由
      {
        path: '/',
        name: 'home',
        component: Home,
        meta: {
          title: '遇花园',
          login: true
        }
      },
      {
        path: '/offline',
        name: 'offline',
        component: Offline,
        meta: {
          title: '无网络'
        }
      },
      {
        path: '/goods/list',
        name: 'goods-list',
        component: GoodsList,
        meta: {
          title: '商品列表',
          login: true
        }
      },
      {
        path: '/video/list',
        name: 'video-list',
        component: VideoList,
        meta: {
          title: '视频列表',
          login: true
        }
      },
      {
        path: '/cart/list',
        name: 'cart-list',
        component: CartList,
        meta: {
          login: true,
          title: '购物车'
        }
      },
      {
        path: '/my',
        name: 'my',
        component: My,
        meta: {
          title: '我的',
          login: true,
          auth: true
        }
      },
      {
        path: '/goods/detail/:id',
        name: 'goods-detail',
        component: GoodsDetail,
        meta: {
          title: '商品详情',
          login: false
        }
      },
      {
        path: '/address/list',
        name: 'address-list',
        component: AddressList,
        meta: {
          title: '我的收货地址',
          login: true
        }
      },
      {
        path: '/address/shop',
        name: 'address-shop',
        component: ShopAddressList,
        meta: {
          title: '门店地址',
          login: true
        }
      },
      {
        path: '/address/add',
        name: 'address-add',
        component: AddressAdd,
        meta: {
          title: '添加新地址',
          login: true
        }
      },
      {
        path: '/address/edit/:id',
        name: 'address-edit',
        component: AddressEdit,
        meta: {
          title: '编辑地址',
          login: true
        }
      },
      {
        path: '/order/confirm',
        name: 'order-confirm',
        component: OrderConfirm,
        meta: {
          title: '订单确认',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/rent/confirm',
        name: 'order-rent-confirm',
        component: OrderRentConfirm,
        meta: {
          title: '租摆订单确认',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/rent/detail/:id',
        name: 'order-rent-detail',
        component: OrderRentDetail,
        meta: {
          title: '订单详情',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/rent/server/:id',
        name: 'order-rent-server',
        component: OrderRentServer,
        meta: {
          title: '租摆服务',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/list',
        name: 'order-list',
        component: OrderList,
        meta: {
          title: '全部订单',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/detail/:id',
        name: 'order-detail',
        component: OrderDetail,
        meta: {
          title: '订单详情',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/integral/detail/:id',
        name: 'order-integral-detail',
        component: OrderIntegralDetail,
        meta: {
          title: '积分详情',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/express/:id',
        name: 'order-express',
        component: OrderExpress,
        meta: {
          title: '订单物流',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/agent',
        name: 'order-agent',
        component: OrderAgent,
        meta: {
          title: '代下单',
          login: true,
          auth: true
        }
      },
      {
        path: '/order/success',
        name: 'order-success',
        component: OrderSuccess,
        meta: {
          title: '交易成功',
          login: true,
          auth: true
        }
      },
      {
        path: '/member/integral',
        name: 'member-integral',
        component: IntegralList,
        meta: {
          title: '积分明细',
          login: true,
          auth: true
        }
      },
      {
        path: '/member/balance',
        name: 'member-balance',
        component: BalanceList,
        meta: {
          title: '余额明细',
          login: true,
          auth: true
        }
      },
      {
        path: '/member/spread',
        name: 'member-spread',
        component: MemberSpread,
        meta: {
          title: '推荐',
          login: true,
          auth: true
        }
      },
      {
        path: '/member/register',
        name: 'member-register',
        component: MemberRegister,
        meta: {
          title: '注册',
          login: true
        }
      },
      {
        path: '/video/detail/:id',
        name: 'video-detail',
        component: VideoDetail,
        meta: {
          title: '视频详情',
          login: true
        }
      },
      {
        path: '/notice/list',
        name: 'notice-list',
        component: NoticeList,
        meta: {
          title: '通知列表',
          login: true
        }
      },
      {
        path: '/notice/detail/:id',
        name: 'notice-detail',
        component: NoticeDetail,
        meta: {
          title: '通知详情',
          login: true
        }
      },
      {
        path: '/comment/add/:id',
        name: 'comment-add',
        component: CommentAdd,
        meta: {
          title: '添加评论',
          login: true,
          auth: true
        }
      },
      {
        path: '/comment/list/:id',
        name: 'comment-list',
        component: CommentList,
        meta: {
          title: '评论列表',
          login: true
        }
      },
      {
        path: '/refund/list',
        name: 'refund-list',
        component: RefundList,
        meta: {
          title: '退款/退货',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/goods/detail/:id',
        name: 'refund-goods-detail',
        component: RefundGoodsDetail,
        meta: {
          title: '退货详情',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/goods/list/:orderId/:goodsId',
        name: 'refund-goods-list',
        component: RefundGoodsList,
        meta: {
          title: '退货列表',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/goods/add/:orderId/:goodsId',
        name: 'refund-goods-add',
        component: RefundGoodsAdd,
        meta: {
          title: '申请退货',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/goods/express',
        name: 'refund-goods-express',
        component: RefundGoodsExpress,
        meta: {
          title: '退货物流',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/money/add/:orderId/:goodsId',
        name: 'refund-money-add',
        component: RefundMoneyAdd,
        meta: {
          title: '申请退款',
          login: true,
          auth: true
        }
      },
      {
        path: '/refund/money/detail/:id',
        name: 'refund-money-detail',
        component: RefundMoneyDetail,
        meta: {
          title: '退款详情',
          login: true,
          auth: true
        }
      },
      {
        path: '/setting/index',
        name: 'setting-index',
        component: SettingIndex,
        meta: {
          title: '设置',
          login: true,
          auth: true
        }
      },
      {
        path: '/setting/password',
        name: 'setting-password',
        component: Password,
        meta: {
          title: '设置密码',
          login: true,
          auth: true
        }
      },
      {
        path: '/setting/name',
        name: 'setting-name',
        component: Name,
        meta: {
          title: '设置昵称',
          login: true,
          auth: true
        }
      },
      {
        path: '/setting/feedback',
        name: 'setting-feedback',
        component: Feedback,
        meta: {
          title: '意见反馈',
          login: true,
          auth: true
        }
      },
      {
        path: '/news/list',
        name: 'news-list',
        component: NewsList,
        meta: {
          title: '新闻列表',
          login: true,
          auth: true
        }
      },
      {
        path: '/news/detail/:id',
        name: 'news-detail',
        component: NewsDetail,
        meta: {
          title: '新闻详情',
          login: true,
          auth: true
        }
      },
      {
        path: 'active/list',
        name: 'active-list',
        component: ActiveList,
        meta: {
          title: '活动列表',
          login: true
        }
      },
      {
        path: 'active/goodsList/:id',
        name: 'active-goods-list',
        component: ActiveGoodsList,
        meta: {
          title: '活动商品列表',
          login: true
        }
      },
      {
        path: 'balcony/list',
        name: 'balcony-list',
        component: BalconyList,
        meta: {
          title: '阳台种子列表',
          login: true
        }
      },
      {
        path: 'collect/list',
        name: 'collect-list',
        component: CollectList,
        meta: {
          title: '收藏列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'search/goods',
        name: 'search-goods',
        component: SearchGoods,
        meta: {
          title: '搜索',
          login: true
        }
      },
      {
        path: 'invited/member',
        name: 'invited-member',
        component: InvitedMember,
        meta: {
          title: '下级列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'invited/order/:id',
        name: 'invited-order',
        component: InvitedOrder,
        meta: {
          title: '下级订单',
          login: true,
          auth: true
        }
      },
      {
        path: 'login/password',
        name: 'login-password',
        component: LoginPassword,
        meta: {
          title: '密码登录'
        }
      },
      {
        path: 'login/message',
        name: 'login-message',
        component: LoginMessage,
        meta: {
          title: '验证码登录'
        }
      },
      {
        path: 'login/bind',
        name: 'login-bind',
        component: LoginBind,
        meta: {
          title: '绑定手机号'
        }
      },
      {
        path: 'location/select',
        name: 'location-select',
        component: LocationSelect,
        meta: {
          title: '选择地址',
          login: true,
          auth: false
        }
      },
      {
        path: 'store/list',
        name: 'store-list',
        component: StoreList,
        meta: {
          title: '商店列表',
          login: true,
          auth: false
        }
      },
      {
        path: 'store/contact',
        name: 'store-contact',
        component: StoreContact,
        meta: {
          title: '联系我们',
          login: false,
          auth: false
        }
      },
      {
        path: 'integral-mall',
        name: 'integral-mall',
        component: IntegralMall,
        meta: {
          title: '积分商城',
          login: true,
          auth: false
        }
      },
      {
        path: 'integral-exchanged',
        name: 'integral-exchanged',
        component: IntegralExchanged,
        meta: {
          title: '兑换记录',
          login: true,
          auth: false
        }
      },
      {
        path: 'wiki',
        name: 'wiki',
        component: WikiIndex,
        meta: {
          title: '百科',
          login: true,
          auth: false
        }
      },
      // {
      //   path: 'member/coupon',
      //   name: 'member-coupon',
      //   component: MemberCoupon,
      //   meta: {
      //     title: '我的优惠券',
      //     login: true,
      //     auth: true
      //   }
      // },
      // {
      //   path: 'active/coupon/:id',
      //   name: 'active-coupon',
      //   component: StoreCoupon,
      //   meta: {
      //     title: '优惠券',
      //     login: true,
      //     auth: true
      //   }
      // },
      {
        path: 'blog',
        name: 'blog-index',
        component: BlogIndex,
        meta: {
          title: '个人主页',
          login: true,
          auth: false
        }
      },
      {
        path: 'blog/article/add',
        name: 'article-add',
        component: ArticleAdd,
        meta: {
          title: '发表文章',
          login: true,
          auth: true
        }
      },
      {
        path: 'blog/article/edit/:id',
        name: 'article-edit',
        component: ArticleEdit,
        meta: {
          title: '编辑文章',
          login: true,
          auth: true
        }
      },
      {
        path: 'blog/article/detail/:id',
        name: 'article-detail',
        component: ArticleDetail,
        meta: {
          title: '文章详情',
          login: false,
          auth: false
        }
      },
      {
        path: 'blog/article/detail2/:id',
        name: 'article-detail2',
        component: ArticleDetail2,
        meta: {
          title: '文章详情',
          login: false,
          auth: false
        }
      },
      {
        path: 'blog/article/list',
        name: 'article-list',
        component: ArticleList,
        meta: {
          title: '育花缘',
          login: true,
          auth: false
        }
      },
      {
        path: 'blog/diary/list',
        name: 'diary-list',
        component: DiaryList,
        meta: {
          title: '遇见',
          login: true,
          auth: false
        }
      },
      {
        path: 'blog/diary/add',
        name: 'diary-add',
        component: DiaryAdd,
        meta: {
          title: '发布遇见',
          login: true,
          auth: true
        }
      },
      {
        path: 'blog/fans/list/:id',
        name: 'fans-list',
        component: FansList,
        meta: {
          title: '粉丝列表',
          login: true,
          auth: false
        }
      },
      {
        path: 'blog/follow/list/:id',
        name: 'follow-list',
        component: FollowList,
        meta: {
          title: '关注列表',
          login: true,
          auth: false
        }
      },
      {
        path: 'blog/relation/:mid',
        name: 'relation-list',
        component: RelationList,
        meta: {
          title: '相关文章',
          login: false,
          auth: false
        }
      },
      {
        path: 'garden/list',
        name: 'garden-list',
        component: GardenList,
        meta: {
          title: '我的花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/child/list',
        name: 'garden-child-list',
        component: ChildGardenList,
        meta: {
          title: '共享花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/child/add',
        name: 'garden-child-add',
        component: ChildGardenAdd,
        meta: {
          title: '新建区域花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/child/deleted',
        name: 'garden-child-deleted',
        component: ChildGardenDeleted,
        meta: {
          title: '已删除的区域花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/deleted',
        name: 'garden-deleted',
        component: GardenDeleted,
        meta: {
          title: '已删除的花园',
          login: true,
          auth: false
        }
      },
      {
        path: 'garden/shareGardenDeleted',
        name: 'garden-share-deleted',
        component: ShareGardenDeleted,
        meta: {
          title: '已删除的花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/shareGardenEdit/:id',
        name: 'garden-share-Edit',
        component: ShareGardenEdit,
        meta: {
          title: '编辑共享花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/add',
        name: 'garden-add',
        component: GardenAdd,
        meta: {
          title: '新建花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/edit/:id',
        name: 'garden-edit',
        component: GardenEdit,
        meta: {
          title: '编辑花园',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/detail/:id',
        name: 'garden-detail',
        component: GardenDetail,
        meta: {
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/list',
        name: 'plant-list',
        component: PlantList,
        meta: {
          title: '所有植物',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/add',
        name: 'plant-add',
        component: PlantAdd,
        meta: {
          title: '添加植物',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/edit/:id',
        name: 'plant-edit',
        component: PlantEdit,
        meta: {
          title: '编辑植物',
          login: true,
          auth: true
        }
      },
      {
        path: 'wiki/list',
        name: 'wiki-list',
        component: WikiList,
        meta: {
          title: '植物列表',
          login: true,
          auth: false
        }
      },
      {
        path: 'wiki/baidu',
        name: 'wiki-baidu',
        component: WikiBaidu,
        meta: {
          title: '百度百科',
          login: true,
          auth: false
        }
      },
      {
        path: 'wiki/goods',
        name: 'wiki-goods',
        component: WikiGoods,
        meta: {
          title: '商品列表',
          login: true,
          auth: false
        }
      },
      {
        path: 'garden/plant/attr',
        name: 'plant-attr',
        component: PlantAttr,
        meta: {
          title: '添加植物',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/detail/:id',
        name: 'plant-detail',
        component: PlantDetail,
        meta: {
          title: '植物',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/growth/add',
        name: 'growth-add',
        component: GrowthAdd,
        meta: {
          title: '添加成长日记',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/plant/growth/edit/:id',
        name: 'growth-edit',
        component: GrowthEdit,
        meta: {
          title: '编辑成长日记',
          login: true,
          auth: false
        }
      },
      {
        path: 'garden/task/list',
        name: 'task-list',
        component: TaskList,
        meta: {
          title: '全部任务',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/task/classify',
        name: 'task-classify',
        component: TaskClassify,
        meta: {
          title: '批量完成任务',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/task/garden/:id',
        name: 'task-garden',
        component: TaskGarden,
        meta: {
          title: '花园任务',
          login: true,
          auth: false
        }
      },
      {
        path: 'garden/task/batch',
        name: 'task-batch',
        component: TaskBatch,
        meta: {
          title: '批量完成任务',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/distribute/fans',
        name: 'distribute-fans',
        component: DistributeFans,
        meta: {
          title: '用户列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/distribute/member',
        name: 'distribute-member',
        component: DistributeMember,
        meta: {
          title: '成员列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/distribute/plant',
        name: 'distribute-plant',
        component: DistributePlant,
        meta: {
          title: '植物列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/distribute/member-plant',
        name: 'distribute-member-plant',
        component: DistributeMemberPlant,
        meta: {
          title: '已分配的植物列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'garden/distribute/modify',
        name: 'distribute-modify',
        component: DistributeModify,
        meta: {
          title: '成员列表',
          login: true,
          auth: true
        }
      },
      {
        path: 'distinguish',
        name: 'distinguish',
        component: Distinguish,
        meta: {
          title: '识花',
          keepAlive: true,
          login: true,
          auth: false
        }
      },
      {
        path: 'classify/buy',
        name: 'classify-buy',
        component: ClassifyBuy,
        meta: {
          title: '买花',
          login: true,
          auth: false
        }
      },
      {
        path: 'classify/rent',
        name: 'classify-rent',
        component: ClassifyRent,
        meta: {
          title: '租花',
          login: true,
          auth: false
        }
      },
      {
        path: 'classify/integral',
        name: 'classify-integral',
        component: ClassifyIntegral,
        meta: {
          title: '积分商城',
          login: true,
          auth: false
        }
      },
      {
        path: 'coupon/store/:id',
        name: 'coupon-store',
        component: CouponStore,
        meta: {
          title: '优惠券',
          login: true,
          auth: false
        }
      },
      {
        path: 'coupon/detail/:id',
        name: 'coupon-detail',
        component: CouponDetail,
        meta: {
          title: '优惠券详情',
          login: true,
          auth: false
        }
      },
      {
        path: 'coupon/my',
        name: 'coupon-my',
        component: CouponMy,
        meta: {
          title: '我的优惠券',
          login: true,
          auth: true
        }
      }
    ]
  }
]

// 合并公共路由
// routers = routers.concat(commonRouter)

export {list, scrollBehavior}

